# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding field 'RumorVerification.is_positive'
        db.add_column(u'companies_rumorverification', 'is_positive',
                      self.gf('django.db.models.fields.BooleanField')(default=False),
                      keep_default=False)


    def backwards(self, orm):
        # Deleting field 'RumorVerification.is_positive'
        db.delete_column(u'companies_rumorverification', 'is_positive')


    models = {
        u'basic_info.concept': {
            'Meta': {'object_name': 'Concept'},
            'name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
            'stocks': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['basic_info.Stock']", 'through': u"orm['basic_info.StockConceptMap']", 'symmetrical': 'False'})
        },
        u'basic_info.industry': {
            'Meta': {'object_name': 'Industry'},
            'name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
            'stocks': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['basic_info.Stock']", 'through': u"orm['basic_info.StockIndustryMap']", 'symmetrical': 'False'})
        },
        u'basic_info.stock': {
            'Meta': {'object_name': 'Stock'},
            'code': ('django.db.models.fields.CharField', [], {'max_length': '8', 'primary_key': 'True'}),
            'csrc_industry': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
            'csrc_sub_industry': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'full_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
            'pinyin_name': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'short_name': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_index': 'True'})
        },
        u'basic_info.stockconceptmap': {
            'Meta': {'unique_together': "(('stock', 'concept'),)", 'object_name': 'StockConceptMap'},
            'concept': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['basic_info.Concept']"}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'stock': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['basic_info.Stock']"})
        },
        u'basic_info.stockindustrymap': {
            'Meta': {'unique_together': "(('stock', 'industry'),)", 'object_name': 'StockIndustryMap'},
            'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'industry': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['basic_info.Industry']"}),
            'stock': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['basic_info.Stock']"})
        },
        u'companies.dailymoneyflow': {
            'Meta': {'unique_together': "(('date', 'stock'),)", 'object_name': 'DailyMoneyFlow'},
            'big_flow': ('django.db.models.fields.FloatField', [], {}),
            'closed_price': ('django.db.models.fields.FloatField', [], {}),
            'date': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'non_big_flow': ('django.db.models.fields.FloatField', [], {}),
            'stock': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['basic_info.Stock']"}),
            'super_flow': ('django.db.models.fields.FloatField', [], {}),
            'total_flow': ('django.db.models.fields.FloatField', [], {'db_index': 'True'})
        },
        u'companies.dailymoneyflowbyconcept': {
            'Meta': {'unique_together': "(('date', 'concept'),)", 'object_name': 'DailyMoneyFlowByConcept'},
            'concept': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['basic_info.Concept']"}),
            'date': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'total_flow': ('django.db.models.fields.FloatField', [], {'db_index': 'True'})
        },
        u'companies.dailymoneyflowbyindustry': {
            'Meta': {'unique_together': "(('date', 'industry'),)", 'object_name': 'DailyMoneyFlowByIndustry'},
            'date': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'industry': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['basic_info.Industry']"}),
            'total_flow': ('django.db.models.fields.FloatField', [], {'db_index': 'True'})
        },
        u'companies.qa': {
            'Meta': {'unique_together': "(('question_date', 'stock', 'question'),)", 'object_name': 'QA', 'index_together': "[['answer_date', 'stock'], ['answer_date', 'stock', 'question', 'polarity']]"},
            'answer': ('django.db.models.fields.TextField', [], {}),
            'answer_date': ('django.db.models.fields.DateTimeField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'main_category': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
            'polarity': ('django.db.models.fields.IntegerField', [], {'default': '3'}),
            'question': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'question_date': ('django.db.models.fields.DateTimeField', [], {}),
            'stock': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['basic_info.Stock']"}),
            'sub_category': ('django.db.models.fields.CharField', [], {'max_length': '10'})
        },
        u'companies.qastatisticsresult': {
            'Meta': {'unique_together': "(('category', 'name', 'date', 'cycle'),)", 'object_name': 'QAStatisticsResult', 'index_together': "[['category', 'name', 'date', 'cycle']]"},
            'category': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
            'count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'}),
            'cycle': ('django.db.models.fields.IntegerField', [], {}),
            'date': ('django.db.models.fields.DateField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'negative_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'}),
            'negative_rate': ('django.db.models.fields.FloatField', [], {'default': '0', 'db_index': 'True'}),
            'polarity_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'}),
            'positive_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'}),
            'positive_rate': ('django.db.models.fields.FloatField', [], {'default': '0', 'db_index': 'True'})
        },
        u'companies.rumorverification': {
            'Meta': {'unique_together': "(('date', 'url'),)", 'object_name': 'RumorVerification'},
            'answer': ('django.db.models.fields.TextField', [], {}),
            'date': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_positive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'question': ('django.db.models.fields.TextField', [], {}),
            'stock': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['basic_info.Stock']"}),
            'url': ('django.db.models.fields.URLField', [], {'max_length': '200'})
        }
    }

    complete_apps = ['companies']